﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace WebAssistant.BusinessLogic.Model
{
    [SugarTable("product_templates")]
    public class ProductTemplates
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")]
        public int Id { get; set; }

        [SugarColumn(ColumnName = "product_id")]
        public int ProductId { get; set; }

        [SugarColumn(ColumnName = "name")]
        public string Name { get; set; }

        [SugarColumn(ColumnName = "display_name")]
        public string DisplayName { get; set; }

        /// <summary>
        /// 产品类别
        /// </summary>
        [SugarColumn(ColumnName = "categ_id")]
        public int CategId { get; set; }

        /// <summary>
        /// 说明
        /// </summary>
        [SugarColumn(ColumnName = "description", IsNullable = true)]
        public string Description { get; set; }

        /// <summary>
        /// 拣货说明
        /// </summary>
        [SugarColumn(ColumnName = "description_picking", IsNullable = true)]
        public string DescriptionPicking { get; set; }

        /// <summary>
        /// 收货说明
        /// </summary>
        [SugarColumn(ColumnName = "description_pickingin", IsNullable = true)]
        public string DescriptionPickingin { get; set; }

        /// <summary>
        /// 出库单说明
        /// </summary>
        [SugarColumn(ColumnName = "description_pickingout", IsNullable = true)]
        public string DescriptionPickingout { get; set; }

        /// <summary>
        /// 采购说明
        /// </summary>
        [SugarColumn(ColumnName = "description_sale", IsNullable = true)]
        public string DescriptionSale { get; set; }

        /// <summary>
        /// 采购说明
        /// </summary>
        [SugarColumn(ColumnName = "description_purchase", IsNullable = true)]
        public string DescriptionPurchase { get; set; }

        /// <summary>
        /// 到岸成本
        /// </summary>
        [SugarColumn(ColumnName = "landed_cost_ok", IsNullable = true)]
        public bool LandedCostOk { get; set; }

        /// <summary>
        /// 销售价格
        /// </summary>
        [SugarColumn(ColumnName = "list_price", IsNullable = true)]
        public double ListPrice { get; set; }

        /// <summary>
        /// 公开价格
        /// </summary>
        [SugarColumn(ColumnName = "lst_price", IsNullable = true)]
        public double LstPrice { get; set; }

        /// <summary>
        /// 价格
        /// </summary>
        [SugarColumn(ColumnName = "price", IsNullable = true)]
        public double Price { get; set; }

        /// <summary>
        /// 成本
        /// </summary>
        [SugarColumn(ColumnName = "standard_price", IsNullable = true)]
        public double StandardPrice { get; set; }

        [SugarColumn(ColumnName = "active", IsNullable = true)]
        public bool Active { get; set; }
    }
}
